//
//  PCDApiSetNavigationBarTitle.m
//  PCDBank
//
//  Created by DK on 2021/2/26.
//  Copyright © 2021 DK. All rights reserved.
//

#import "PCDApiSetNavigationBarTitle.h"
#import "PCDBankWebViewController.h"

@implementation PCDApiSetNavigationBarTitle

- (void)handler:(id)data andContext:(PCDContext *)context ResponseCallback:(WVJBResponseCallback )responseCallback
{
    NSDictionary *dict = (NSDictionary *)data;
    PCDBankWebViewController *pageVC = context.viewController;
    NSString *strTitle = [dict objectForKey:@"title"];
    
    PCDBarItem *titleItem =pageVC.navigationBar.titleItem;
    titleItem.title = strTitle;
    pageVC.navigationBar.titleItem = titleItem;
}

@end
